package com.evony.common.server.events 
{
    import com.evony.common.*;
    import com.evony.common.beans.*;
    
    public class QuestCompleteTipResponse extends com.evony.common.BaseBean
    {
        public function QuestCompleteTipResponse(arg1:String, arg2:Object, arg3:Boolean=false, arg4:Boolean=false)
        {
            var loc1:*=0;
            super(arg1, arg3, arg4);
            if (arg2.name != null) 
            {
                this.name = arg2.name;
            }
            if (arg2.quest != null) 
            {
                this.quest = new com.evony.common.beans.QuestBean(arg2.quest);
            }
            if (arg2.questId != null) 
            {
                this.questId = arg2.questId;
            }
            return;
        }

        public function copyTo(arg1:com.evony.common.server.events.QuestCompleteTipResponse):void
        {
            arg1.name = this.name;
            if (quest == null) 
            {
                arg1.quest = null;
            }
            else 
            {
                this.quest.copyTo(arg1.quest);
            }
            arg1.questId = this.questId;
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.name = this.name;
            loc1.quest = this.quest.toObject();
            loc1.questId = this.questId;
            return loc1;
        }

        public override function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="---- QuestCompleteTipResponse ----\n";
            loc2 = loc2 + (arg1 + "name = " + this.name + "\n");
            if (quest == null) 
            {
                loc2 = loc2 + (arg1 + "quest = null\n");
            }
            else 
            {
                loc2 = loc2 + this.quest.toDebugString(arg1 + "quest.");
            }
            loc2 = loc2 + (arg1 + "questId = " + this.questId + "\n");
            return loc2;
        }

        public var quest:com.evony.common.beans.QuestBean;

        public var name:String;

        public var questId:int;
    }
}
